package com.coffee.admin.api.platform.service;

import com.coffee.admin.api.platform.query.CarouselFigureQuery;
import com.coffee.admin.api.platform.result.CarouselFigureResult;
import com.coffee.core.entity.Page;
import com.coffee.core.entity.PagerInfo;
import com.coffee.core.exception.BusinessException;

import java.util.List;
import java.util.Map;
import java.util.Set;


public interface CarouselFigureService {

    Page<CarouselFigureResult> getPager(CarouselFigureQuery param, PagerInfo pr);

    Integer count(CarouselFigureQuery param);

    CarouselFigureResult getDetail(Integer id);

    List<CarouselFigureResult> getList(CarouselFigureQuery param, PagerInfo pr);

    List<CarouselFigureResult> getList(CarouselFigureQuery param);

    List<CarouselFigureResult> getList();

    void delete(Integer id);

    void addOrUpdate(CarouselFigureResult result) throws BusinessException;

    void addCarouselFigureCity(List<Integer> ids, Integer cityId) throws BusinessException;

    void deleteCarouselFigureCity(Integer id, Integer cityId) throws BusinessException;

    void carouselEnable(String ids) throws BusinessException;

    Map<Integer, CarouselFigureResult> getItemMap(Set<Integer> idSet);

    Map<Integer, CarouselFigureResult> getItemMap();

}